﻿namespace Magic.System;
/// <summary>
/// 配置映射
/// </summary>
public class MapperConfig : IRegister
{
    /// <summary>
    /// 统一配置映射
    /// </summary>
    /// <param name="config"></param>
    public void Register(TypeAdapterConfig config)
    {
        //管理员映射
        //config.ForType<Admin, AdminOutput>()
        //    .Map(p => p.group_arr, q => q.AdminGroupAccesses
        //    .Select(o => o.GroupId).ToArray())
        //    .Map(p => p.Avatar,
        //    q => string.IsNullOrEmpty(q.Avatar) ? "https://foruda.gitee.com/avatar/1676956773129799330/1210212_zhengguojing_1651132211.png3333" : q.Avatar);


    }
}
